博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
修改任务显示WrkTaskIp.aspx页面
阅读量:5088 次
发布时间:2019-06-13

本文共 3077 字,大约阅读时间需要 10 分钟。

环境:Sharepoint2010

需求:在审批任务页面中插入或显示表单或列表内容,让内容与审核在同一页面上。

修改文件:WrkTaskIp.aspx(改前记得备份)

文件所在的路径:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\template\layouts

列表效果:

表单效果:

具体做法:

将WrkTaskIp.aspx与jquery-1.8.3.js两个件拷贝到C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\template\layouts里,拷贝前记得备份源文件。

WrkTaskIp.aspx 代码:

<%-- _lcid="1033" _version="14.0.4758" _dal="1" --%><%-- _LocalBinding --%><%@ Assembly Name="Microsoft.Office.Workflow.Pages, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%><%@ Assembly Name="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> <%@ Page Language="C#" DynamicMasterPageFile="~masterurl/default.master" Inherits="Microsoft.Office.Workflow.WrkTaskIPPage"   EnableSessionState="true" AutoEventWireup="false"   %> <%@ Import Namespace="Microsoft.SharePoint.WebControls" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Register Tagprefix="InfoPath" Namespace="Microsoft.Office.InfoPath.Server.Controls" Assembly="Microsoft.Office.InfoPath.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Register TagPrefix="wssuc" TagName="LinksTable" src="/_controltemplates/LinksTable.ascx" %> <%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="/_controltemplates/InputFormSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="/_controltemplates/InputFormControl.ascx" %> <%@ Register TagPrefix="wssuc" TagName="LinkSection" src="/_controltemplates/LinkSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="/_controltemplates/ButtonSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ActionBar" src="/_controltemplates/ActionBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBar" src="/_controltemplates/ToolBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="/_controltemplates/ToolBarButton.ascx" %> <%@ Register TagPrefix="wssuc" TagName="Welcome" src="/_controltemplates/Welcome.ascx" %>
><%SPHttpUtility.HtmlEncode(List.Title,Response.Output);%>: <% SPHttpUtility.HtmlEncode(m_taskName,Response.Output); %>
<%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(GetLocString("WrkTask_PageTitle")),Response.Output);%/>

 

如你有更好的方法,请分享下。

转载于:https://www.cnblogs.com/ningang/p/4302544.html

你可能感兴趣的文章